package com.wkk.yuli.common;

/**
 * @author : WangKeKe
 * @date : 2020/9/24 16:54
 * Description : 常量字典
 */


public class Constant {

    /**
     * 清除策略
     */
    public static final String CLEAR_POLICY_LRU = "LRU";
    public static final String CLEAR_POLICY_FIFO = "FIFO";
    public static final String CLEAR_POLICY_LFU = "LFU";
    public static final String CLEAR_POLICY_SOFT = "SOFT";
    public static final String CLEAR_POLICY_WEAK = "WEAK";

    /**
     * 过期清除
     */
    public static final String EXPIRE_PURGE_POLICY_PASSIVE = "PASSIVE";
    public static final String EXPIRE_PURGE_POLICY_ACTIVE = "ACTIVE";

    /**
     * 持久化状态与策略
     */
    public static final String PERSISTENCE_STATUS_CLOSE = "CLOSE";
    public static final String PERSISTENCE_STATUS_OPEN = "OPEN";

    public static final String PERSISTENCE_POLICY_TIME = "TIME";
    public static final String PERSISTENCE_POLICY_FREQUENCY = "FREQUENCY";
}
